<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.xiaoyao.novel.pojo.Chapter"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="${webInfo.domain }" />
		<title> ${chapter.chapterTitle }-${book.bookName }最新章节尽在${webInfo.webName }</title>
		<meta http-equiv=content-type content="text/html; charset=UTF-8" />
		<meta http-equiv="Cache-Control" content="max-age=1800" />
		<meta name="keywords" content="${book.bookName},${chapter.keywords}"/>
		<meta name="description" content="${chapter.description}"/>
		<link rel="stylesheet" type="text/css" href="css/novel.css"/> 
		<script type="text/javascript" >
			var prev=${chapter.prevId};
			var next=${chapter.nextId};
		 </script>
	</head>
	<body class="page page-min-width">
	<CENTER>
		<div class="content clearfix">
			<!-- 头部 -->
			<jsp:include page="header.jsp"></jsp:include>
			<!-- 主体 -->
			<div class="trip-manager clearfix">
				<div class="bd clearfix">
					<div></div>
					<div class='chapter'>  
						 ${webInfo.chapterTop} 
						 <h1>${book.bookName} - ${chapter.chapterTitle }</h1><BR>
						
						 ${webInfo.chapterPageTop} 
						 <div class='cpage'> 
						 	<c:if test="${chapter.prevId==0}">
						 		无上一章
						 	</c:if>
						 	<c:if test="${chapter.prevId>0}">
						 	←&nbsp;<a  onclick="" href="/chapter/${chapter.prevId}.html">上一章</a>
						 	</c:if>
						 	&nbsp;&nbsp;&nbsp;
						 	<a  onclick=""  href="/book/${chapter.bookId }.html">${book.bookName}最新章节</a>&nbsp;&nbsp;&nbsp;
						 	<c:if test="${chapter.nextId==0}">
						 		无下一章
						 	</c:if>
						 	<c:if test="${chapter.nextId>0}">
						 	<a  onclick=""  href="/chapter/${chapter.nextId}.html">下一章</a>&nbsp;→
						 	</c:if>
						 </div> 
						 <div class='txt'>    
							${chapter.chapterContent } <BR/>
							本文永久分享地址:<a href="${webInfo.domain }/chapter/${chapter.cid}.html">${webInfo.domain }/chapter/${chapter.cid}.html</a>
						 </div> 
						 ${webInfo.chapterPageBottom} 
						 <div class='cpage'> 
							  <!-- 顶一下 -->
							<CENTER><div class="bdlikebutton" ></div></CENTER>
							<script id="bdlike_shell"></script>
							<script>
								var bdShare_config = {
								 "type":"medium",
								 "color":"blue",
								 "uid":"${chapter.cid }",
								 "likeText":"顶下${book.authorName}",
								 "likedText":"您已支持过了"
								};
								document.getElementById("bdlike_shell").src="http://bdimg.share.baidu.com/static/js/like_shell.js?t=" + Math.ceil(new Date()/3600000);
							</script>
						 </div> 
						 <div class='cpage'>
						 	<c:if test="${chapter.prevId==0}">
						 		无上一章
						 	</c:if>
						 	<c:if test="${chapter.prevId>0}">
						 	←&nbsp;<a  onclick="" href="/chapter/${chapter.prevId}.html">上一章</a>
						 	</c:if>
						 	&nbsp;&nbsp;&nbsp;
						 	<a  onclick=""  href="/book/${chapter.bookId }.html">${book.bookName}最新章节</a>&nbsp;&nbsp;&nbsp;
						 	<c:if test="${chapter.nextId==0}">
						 		无下一章
						 	</c:if>
						 	<c:if test="${chapter.nextId>0}">
						 	<a  onclick=""  href="/chapter/${chapter.nextId}.html">下一章</a>&nbsp;→
						 	</c:if>
						 </div> 
						 <div class='category'>
				<div class="blocktitle">
					<ul>
						<li class="tit01">
							<h3>
								${webInfo.webName}热门书籍列表
							</h3>
						</li>
					</ul>
				</div>  
				<div class="blockcontent">
					<ul>
						<c:forEach items="${hotList}" var="item" begin="0" step="1"
							varStatus="statu">
							<li>
								<b> <a href="/${item.html}">${item.bookName }</a> </b>&nbsp;&nbsp;
								<font color='gray' size='-1'>&nbsp;&nbsp;&nbsp;${item.authorName
									}</font>
							</li>
						</c:forEach>
					</ul> 
				</div> 
			</div>
					</div>
				</div>
			</div> 
			<!-- / 主体 --> 
			<jsp:include page="footer.jsp"></jsp:include>
		</div>
		</CENTER>
	</body>
</html>
